﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using CYTS.Aoyou.Framework.Config;

namespace CYTS.Aoyou.Framework.Database
{
    /// <summary>
    /// 数据库类别配置
    /// </summary>
    public class DBCategoryConfig : ConfigUnit
    {
        public List<DataAdapter> DataAdapters { get; set; }
    }

    /// <summary>
    /// 数据库适配器配置
    /// </summary>
    public class DataAdapter
    {
        [XmlAttribute(AttributeName = "name")]
        public string Name { get; set; }

        [XmlAttribute(AttributeName = "dbCategory")]
        public DatabaseCategory DBCategory { get; set; }

        [XmlAttribute(AttributeName = "accessType")]
        public DataAccessType DAType { get; set; }
    }
}
